/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package csp;

/**
 *
 * @author Leandro
 */
public abstract class ExpertoRestricciones {
    
    public  boolean factible(CSP problema){
        boolean rta=true;
        for(Variable var:problema.getVariables()){
            rta=rta&&verificarRestricciones(var);
        }
        return rta;
    }

    public abstract boolean verificarRestricciones(Variable var);

}
